From e026a54ad643e91691735cd3e70e9fa374104aaa Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 1 Sep 2006 16:11:51 +0100 Subject: [PATCH] [LINUX] xenoprof: use alloc_vm_area instead of get_vm_area. The former is exported to modules. Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c b/linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c index de6ef0862e..689a8e335f 100644 --- a/linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c +++ b/linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c @@ -26,6 +26,7 @@ #include #include "op_counter.h" +#include #include #include #include <../../../drivers/oprofile/cpu_buffer.h> @@ -396,7 +397,7 @@ static int xenoprof_set_passive(int * p_domains, npages = (passive_domains[i].bufsize * passive_domains[i].nbuf - 1) / PAGE_SIZE + 1; - area = get_vm_area(npages * PAGE_SIZE, VM_IOREMAP); + area = alloc_vm_area(npages * PAGE_SIZE); if (area == NULL) { ret = -ENOMEM; goto out; @@ -502,7 +503,7 @@ int __init oprofile_arch_init(struct oprofile_operations * ops) npages = (init.bufsize * nbuf - 1) / PAGE_SIZE + 1; - area = get_vm_area(npages * PAGE_SIZE, VM_IOREMAP); + area = alloc_vm_area(npages * PAGE_SIZE); if (area == NULL) { ret = -ENOMEM; goto out; -- 2.30.2